package com.hylu.springcloud.service;

import com.hylu.springcloud.entity.Book;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface BookRepository extends Repository<Book, String> {

    List<Book> findByTitleAndPrice(String name, Double price);

    boolean existsByAuthor(String author);
}
